projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ac18cc
)
; * src/window.c (window_body_unit_from_symbol): Fix Lisp EQ.
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 9 Jun 2022 16:40:25 +0000
(19:40 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 9 Jun 2022 16:40:25 +0000
(19:40 +0300)
src/window.c
patch
|
blob
|
history
diff --git
a/src/window.c
b/src/window.c
index e5666ce38e26e469923717f2fd2b34b569fe8752..ac8408a9a971c3ce8708602feebcfbcef56e3826 100644
(file)
--- a/
src/window.c
+++ b/
src/window.c
@@
-1018,9
+1018,11
@@
static enum window_body_unit
window_body_unit_from_symbol (Lisp_Object unit)
{
return
- (unit == Qremap ? WINDOW_BODY_IN_REMAPPED_CHARS
- : NILP (unit) ? WINDOW_BODY_IN_CANONICAL_CHARS
- : WINDOW_BODY_IN_PIXELS);
+ EQ (unit, Qremap)
+ ? WINDOW_BODY_IN_REMAPPED_CHARS
+ : (NILP (unit)
+ ? WINDOW_BODY_IN_CANONICAL_CHARS
+ : WINDOW_BODY_IN_PIXELS);
}
/* Return the number of lines/pixels of W's body. Don't count any mode